package com.todo.strategy.online.iface.request;

import com.todo.common.common.entity.CurrentUser;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author azhebuxing
 * @date 2024/5/9 21:05
 * @description
 */
@Data
@Schema(title = "更新计划内容入参", description = "更新计划内容入参")
public class UpdatePlanContentParam {

    private CurrentUser _user;

    @Schema(title = "主键id", description = "主键id")
    private Long id;

    @Schema(title = "计划关联id", description = "计划关联id")
    private Long planRelationId;

    @Schema(title = "计划id", description = "计划id")
    private Long planId;

    @Schema(title = "标题", description = "标题")
    private String title;

    @Schema(title = "内容", description = "内容")
    private String content;

    @Schema(title = "出行意见", description = "出行意见")
    private Suggest travelSuggest;

    @Schema(title = "评分", description = "评分 1-100")
    private Integer score;

    @Schema(title = "金额花费", description = "金额花费")
    private BigDecimal moneyCost;

    @Schema(title = "时间花费/小时", description = "时间花费/小时")
    private Integer timeCost;

    @Schema(title = "关联图片列表", description = "关联图片列表")
    private List<String> imgList;

    public boolean baseCheck() {
        if (id == null || planRelationId == null || planId == null || title == null || content == null){
            return false;
        }
        return true;
    }


    @Data
    public static class Suggest {

        @Schema(title = "旅游建议", description = "旅游建议")
        private String travelSuggest;

        @Schema(title = "景点建议", description = "景点建议")
        private String sightSuggest;

        @Schema(title = "踩坑点", description = "踩坑点")
        private String defectSuggest;

        @Schema(title = "槽点", description = "槽点")
        private String disclose;
    }
}
